import apiClient from "../apiClient";

export enum UserApi {
	getAlarmHistoryList = "/wprtbs/devicepc/getSectionHistoryAlarm",
	exportSectionHistoryAlarm = "/wprtbs/devicepc/exportSectionHistoryAlarm",
	downLoadCustomAlarm = "/wprtbs/alarmpc/downLoadCustomAlarm",
	historyCustomAlarmPage = "/wprtbs/alarmpc/historyCustomAlarmPage"
}

const getAlarmHistoryList = (data: any) => apiClient.get({ url: UserApi.getAlarmHistoryList, params: data });
const exportSectionHistoryAlarm = (data: any) => apiClient.get({ url: UserApi.exportSectionHistoryAlarm, params: data });
const downLoadCustomAlarm = (data: any) => apiClient.get({ url: UserApi.downLoadCustomAlarm, params: data });
const historyCustomAlarmPage = (data: any) => apiClient.post({ url: UserApi.historyCustomAlarmPage, data });
export default {
	getAlarmHistoryList,
	exportSectionHistoryAlarm,
	downLoadCustomAlarm,
	historyCustomAlarmPage
};
